package com.song.cloud.seata.service;

import com.song.cloud.common.entities.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;

/**
 * @Author ZhangGuisong
 * @Date 2021/3/3-23:05
 */
@FeignClient("seata-account-service")
public interface accountService {
    @PostMapping("/account/decreateAccont")
    public CommonResult decreateAccont(@RequestParam("user_id")Long user_id, @RequestParam("money") BigDecimal money);
}
